package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_StockAllot", catalog="Id")
public class TccStockAllot extends BaseEntity<TccStockAllot> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="PGuid", nameJava="pGuid", typeDataBase="varchar")
	private String pGuid;
	@YsField(nameDataBase="Iid", nameJava="iid", typeDataBase="int")
	private Integer iid;
	@YsField(nameDataBase="Nid", nameJava="nid", typeDataBase="varchar")
	private String nid;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="PBid", nameJava="pBid", typeDataBase="varchar")
	private String pBid;
	@YsField(nameDataBase="Cid", nameJava="cid", typeDataBase="varchar")
	private String cid;
	@YsField(nameDataBase="AUser", nameJava="aUser", typeDataBase="varchar")
	private String aUser;
	@YsField(nameDataBase="ADept", nameJava="aDept", typeDataBase="varchar")
	private String aDept;
	@YsField(nameDataBase="APosition", nameJava="aPosition", typeDataBase="varchar")
	private String aPosition;
	@YsField(nameDataBase="BUser", nameJava="bUser", typeDataBase="varchar")
	private String bUser;
	@YsField(nameDataBase="BDept", nameJava="bDept", typeDataBase="varchar")
	private String bDept;
	@YsField(nameDataBase="BPosition", nameJava="bPosition", typeDataBase="varchar")
	private String bPosition;
	@YsField(nameDataBase="GUser", nameJava="gUser", typeDataBase="varchar")
	private String gUser;
	@YsField(nameDataBase="GDept", nameJava="gDept", typeDataBase="varchar")
	private String gDept;
	@YsField(nameDataBase="GClient", nameJava="gClient", typeDataBase="varchar")
	private String gClient;
	@YsField(nameDataBase="GCName", nameJava="gCName", typeDataBase="varchar")
	private String gCName;
	@YsField(nameDataBase="VBz", nameJava="vBz", typeDataBase="varchar")
	private String vBz;
	@YsField(nameDataBase="VZdbz", nameJava="vZdbz", typeDataBase="varchar")
	private String vZdbz;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="bit")
	private Integer effectStock;
	@YsField(nameDataBase="Deleted", nameJava="deleted", typeDataBase="bit")
	private Integer deleted;
	@YsField(nameDataBase="ActiveFlow", nameJava="activeFlow", typeDataBase="varchar")
	private String activeFlow;
	@YsField(nameDataBase="ProcInstId", nameJava="procInstId", typeDataBase="varchar")
	private String procInstId;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductNum", nameJava="productNum", typeDataBase="int")
	private Integer productNum;
	@YsField(nameDataBase="Price", nameJava="price", typeDataBase="decimal")
	private BigDecimal price;
	@YsField(nameDataBase="TotalPrice", nameJava="totalPrice", typeDataBase="decimal")
	private BigDecimal totalPrice;
	@YsField(nameDataBase="GoodsAllocation", nameJava="goodsAllocation", typeDataBase="varchar")
	private String goodsAllocation;
	@YsField(nameDataBase="GoodsArea", nameJava="goodsArea", typeDataBase="varchar")
	private String goodsArea;
	@YsField(nameDataBase="WarehouseAddress", nameJava="warehouseAddress", typeDataBase="varchar")
	private String warehouseAddress;
	@YsField(nameDataBase="AllotNum", nameJava="allotNum", typeDataBase="int")
	private Integer allotNum;
	@YsField(nameDataBase="AllotSum", nameJava="allotSum", typeDataBase="decimal")
	private BigDecimal allotSum;
	@YsField(nameDataBase="ToGoodsAllocation", nameJava="toGoodsAllocation", typeDataBase="varchar")
	private String toGoodsAllocation;
	@YsField(nameDataBase="ToGoodsArea", nameJava="toGoodsArea", typeDataBase="varchar")
	private String toGoodsArea;
	@YsField(nameDataBase="ToWarehouseAddress", nameJava="toWarehouseAddress", typeDataBase="varchar")
	private String toWarehouseAddress;
	@YsField(nameDataBase="ToGCName", nameJava="toGCName", typeDataBase="varchar")
	private String toGCName;
	@YsField(nameDataBase="ToGClient", nameJava="toGClient", typeDataBase="varchar")
	private String toGClient;
	@YsField(nameDataBase="VGsMc", nameJava="vGsMc", typeDataBase="varchar")
	private String vGsMc;
	@YsField(nameDataBase="VGsJc", nameJava="vGsJc", typeDataBase="varchar")
	private String vGsJc;
	@YsField(nameDataBase="VGsBm", nameJava="vGsBm", typeDataBase="varchar")
	private String vGsBm;
	@YsField(nameDataBase="VGsDz", nameJava="vGsDz", typeDataBase="varchar")
	private String vGsDz;
	@YsField(nameDataBase="ToVGsJc", nameJava="toVGsJc", typeDataBase="varchar")
	private String toVGsJc;
	@YsField(nameDataBase="CUser", nameJava="cUser", typeDataBase="varchar")
	private String cUser;
	@YsField(nameDataBase="CUserName", nameJava="cUserName", typeDataBase="varchar")
	private String cUserName;
	@YsField(nameDataBase="CUserDept", nameJava="cUserDept", typeDataBase="varchar")
	private String cUserDept;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccStockAllot setId(Long id) {
		this.id = id;
		return this;
	}
	public String getGuid() {
		return guid;
	}
	public TccStockAllot setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getPGuid() {
		return pGuid;
	}
	public TccStockAllot setPGuid(String pGuid) {
		this.pGuid = pGuid;
		return this;
	}
	public Integer getIid() {
		return iid;
	}
	public TccStockAllot setIid(Integer iid) {
		this.iid = iid;
		return this;
	}
	public String getNid() {
		return nid;
	}
	public TccStockAllot setNid(String nid) {
		this.nid = nid;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccStockAllot setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getPBid() {
		return pBid;
	}
	public TccStockAllot setPBid(String pBid) {
		this.pBid = pBid;
		return this;
	}
	public String getCid() {
		return cid;
	}
	public TccStockAllot setCid(String cid) {
		this.cid = cid;
		return this;
	}
	public String getAUser() {
		return aUser;
	}
	public TccStockAllot setAUser(String aUser) {
		this.aUser = aUser;
		return this;
	}
	public String getADept() {
		return aDept;
	}
	public TccStockAllot setADept(String aDept) {
		this.aDept = aDept;
		return this;
	}
	public String getAPosition() {
		return aPosition;
	}
	public TccStockAllot setAPosition(String aPosition) {
		this.aPosition = aPosition;
		return this;
	}
	public String getBUser() {
		return bUser;
	}
	public TccStockAllot setBUser(String bUser) {
		this.bUser = bUser;
		return this;
	}
	public String getBDept() {
		return bDept;
	}
	public TccStockAllot setBDept(String bDept) {
		this.bDept = bDept;
		return this;
	}
	public String getBPosition() {
		return bPosition;
	}
	public TccStockAllot setBPosition(String bPosition) {
		this.bPosition = bPosition;
		return this;
	}
	public String getGUser() {
		return gUser;
	}
	public TccStockAllot setGUser(String gUser) {
		this.gUser = gUser;
		return this;
	}
	public String getGDept() {
		return gDept;
	}
	public TccStockAllot setGDept(String gDept) {
		this.gDept = gDept;
		return this;
	}
	public String getGClient() {
		return gClient;
	}
	public TccStockAllot setGClient(String gClient) {
		this.gClient = gClient;
		return this;
	}
	public String getGCName() {
		return gCName;
	}
	public TccStockAllot setGCName(String gCName) {
		this.gCName = gCName;
		return this;
	}
	public String getVBz() {
		return vBz;
	}
	public TccStockAllot setVBz(String vBz) {
		this.vBz = vBz;
		return this;
	}
	public String getVZdbz() {
		return vZdbz;
	}
	public TccStockAllot setVZdbz(String vZdbz) {
		this.vZdbz = vZdbz;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TccStockAllot setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Integer getDeleted() {
		return deleted;
	}
	public TccStockAllot setDeleted(Integer deleted) {
		this.deleted = deleted;
		return this;
	}
	public String getActiveFlow() {
		return activeFlow;
	}
	public TccStockAllot setActiveFlow(String activeFlow) {
		this.activeFlow = activeFlow;
		return this;
	}
	public String getProcInstId() {
		return procInstId;
	}
	public TccStockAllot setProcInstId(String procInstId) {
		this.procInstId = procInstId;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TccStockAllot setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TccStockAllot setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public Integer getProductNum() {
		return productNum;
	}
	public TccStockAllot setProductNum(Integer productNum) {
		this.productNum = productNum;
		return this;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public TccStockAllot setPrice(BigDecimal price) {
		this.price = price;
		return this;
	}
	public BigDecimal getTotalPrice() {
		return totalPrice;
	}
	public TccStockAllot setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
		return this;
	}
	public String getGoodsAllocation() {
		return goodsAllocation;
	}
	public TccStockAllot setGoodsAllocation(String goodsAllocation) {
		this.goodsAllocation = goodsAllocation;
		return this;
	}
	public String getGoodsArea() {
		return goodsArea;
	}
	public TccStockAllot setGoodsArea(String goodsArea) {
		this.goodsArea = goodsArea;
		return this;
	}
	public String getWarehouseAddress() {
		return warehouseAddress;
	}
	public TccStockAllot setWarehouseAddress(String warehouseAddress) {
		this.warehouseAddress = warehouseAddress;
		return this;
	}
	public Integer getAllotNum() {
		return allotNum;
	}
	public TccStockAllot setAllotNum(Integer allotNum) {
		this.allotNum = allotNum;
		return this;
	}
	public BigDecimal getAllotSum() {
		return allotSum;
	}
	public TccStockAllot setAllotSum(BigDecimal allotSum) {
		this.allotSum = allotSum;
		return this;
	}
	public String getToGoodsAllocation() {
		return toGoodsAllocation;
	}
	public TccStockAllot setToGoodsAllocation(String toGoodsAllocation) {
		this.toGoodsAllocation = toGoodsAllocation;
		return this;
	}
	public String getToGoodsArea() {
		return toGoodsArea;
	}
	public TccStockAllot setToGoodsArea(String toGoodsArea) {
		this.toGoodsArea = toGoodsArea;
		return this;
	}
	public String getToWarehouseAddress() {
		return toWarehouseAddress;
	}
	public TccStockAllot setToWarehouseAddress(String toWarehouseAddress) {
		this.toWarehouseAddress = toWarehouseAddress;
		return this;
	}
	public String getToGCName() {
		return toGCName;
	}
	public TccStockAllot setToGCName(String toGCName) {
		this.toGCName = toGCName;
		return this;
	}
	public String getToGClient() {
		return toGClient;
	}
	public TccStockAllot setToGClient(String toGClient) {
		this.toGClient = toGClient;
		return this;
	}
	public String getVGsMc() {
		return vGsMc;
	}
	public TccStockAllot setVGsMc(String vGsMc) {
		this.vGsMc = vGsMc;
		return this;
	}
	public String getVGsJc() {
		return vGsJc;
	}
	public TccStockAllot setVGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
		return this;
	}
	public String getVGsBm() {
		return vGsBm;
	}
	public TccStockAllot setVGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
		return this;
	}
	public String getVGsDz() {
		return vGsDz;
	}
	public TccStockAllot setVGsDz(String vGsDz) {
		this.vGsDz = vGsDz;
		return this;
	}
	public String getToVGsJc() {
		return toVGsJc;
	}
	public TccStockAllot setToVGsJc(String toVGsJc) {
		this.toVGsJc = toVGsJc;
		return this;
	}
	public String getCUser() {
		return cUser;
	}
	public TccStockAllot setCUser(String cUser) {
		this.cUser = cUser;
		return this;
	}
	public String getCUserName() {
		return cUserName;
	}
	public TccStockAllot setCUserName(String cUserName) {
		this.cUserName = cUserName;
		return this;
	}
	public String getCUserDept() {
		return cUserDept;
	}
	public TccStockAllot setCUserDept(String cUserDept) {
		this.cUserDept = cUserDept;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccStockAllot setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccStockAllot setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccStockAllot setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccStockAllot tccStockAllot(
		String guid,
		String pGuid,
		Integer iid,
		String nid,
		String bid,
		String pBid,
		String cid,
		String aUser,
		String aDept,
		String aPosition,
		String bUser,
		String bDept,
		String bPosition,
		String gUser,
		String gDept,
		String gClient,
		String gCName,
		String vBz,
		String vZdbz,
		Integer effectStock,
		Integer deleted,
		String activeFlow,
		String procInstId,
		String productName,
		String productCode,
		Integer productNum,
		BigDecimal price,
		BigDecimal totalPrice,
		String goodsAllocation,
		String goodsArea,
		String warehouseAddress,
		Integer allotNum,
		BigDecimal allotSum,
		String toGoodsAllocation,
		String toGoodsArea,
		String toWarehouseAddress,
		String toGCName,
		String toGClient,
		String vGsMc,
		String vGsJc,
		String vGsBm,
		String vGsDz,
		String toVGsJc,
		String cUser,
		String cUserName,
		String cUserDept,
		Integer status
			) {
		TccStockAllot entity = new TccStockAllot();
		entity.setGuid(guid);
		entity.setPGuid(pGuid);
		entity.setIid(iid);
		entity.setNid(nid);
		entity.setBid(bid);
		entity.setPBid(pBid);
		entity.setCid(cid);
		entity.setAUser(aUser);
		entity.setADept(aDept);
		entity.setAPosition(aPosition);
		entity.setBUser(bUser);
		entity.setBDept(bDept);
		entity.setBPosition(bPosition);
		entity.setGUser(gUser);
		entity.setGDept(gDept);
		entity.setGClient(gClient);
		entity.setGCName(gCName);
		entity.setVBz(vBz);
		entity.setVZdbz(vZdbz);
		entity.setEffectStock(effectStock);
		entity.setDeleted(deleted);
		entity.setActiveFlow(activeFlow);
		entity.setProcInstId(procInstId);
		entity.setProductName(productName);
		entity.setProductCode(productCode);
		entity.setProductNum(productNum);
		entity.setPrice(price);
		entity.setTotalPrice(totalPrice);
		entity.setGoodsAllocation(goodsAllocation);
		entity.setGoodsArea(goodsArea);
		entity.setWarehouseAddress(warehouseAddress);
		entity.setAllotNum(allotNum);
		entity.setAllotSum(allotSum);
		entity.setToGoodsAllocation(toGoodsAllocation);
		entity.setToGoodsArea(toGoodsArea);
		entity.setToWarehouseAddress(toWarehouseAddress);
		entity.setToGCName(toGCName);
		entity.setToGClient(toGClient);
		entity.setVGsMc(vGsMc);
		entity.setVGsJc(vGsJc);
		entity.setVGsBm(vGsBm);
		entity.setVGsDz(vGsDz);
		entity.setToVGsJc(toVGsJc);
		entity.setCUser(cUser);
		entity.setCUserName(cUserName);
		entity.setCUserDept(cUserDept);
		entity.setStatus(status);
		return entity;
	}
}